package friendcircle

import (
	"encoding/json"
	"gitee.com/ifinder/wechat-ipad-sdk-golang/base"
)

type FriendCircleUploadReq struct {

	WxId string `json:"Wxid"`

	Base64 string `json:"Base64"` // 支持 图片和视频 ， 不需要 添加base64前缀
}

type FriendCircleUploadResp struct {
	base.WechatResponse

	Data FriendCircleUploadData `json:"Data"`
}

type FriendCircleUploadData struct {
	BaseResponse base.BaseResponse `json:"BaseResponse"` //这个返回的补丁BaseResponse和 baseResponse
	StartPos int64
	TotalLen int64
	ClientId string

	BufferUrl ThumbUrls `json:"BufferUrl"`

	ThumbUrlCount int
	ThumbUrls []ThumbUrls

	Id int
	Type int
}



type ThumbUrls struct {
	Url string
}

func (this *FriendCircleUploadResp) FromJson(data []byte) error {
	return json.Unmarshal(data,this)
}
